using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmGetUserInput : Form
	{
		private IContainer components = null;
		private Button btnOK;
		private Button btnClose;
		public TextBox tboxValue;
		public Label lbMsg;
		public FrmGetUserInput()
		{
			this.InitializeComponent();
		}
		private void btnOK_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.OK;
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.DialogResult = DialogResult.Cancel;
		}
		private void tboxInfo_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				e.Handled = true;
				this.btnOK_Click(null, null);
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.lbMsg = new Label();
			this.tboxValue = new TextBox();
			this.btnOK = new Button();
			this.btnClose = new Button();
			base.SuspendLayout();
			this.lbMsg.AutoSize = true;
			this.lbMsg.Location = new System.Drawing.Point(12, 9);
			this.lbMsg.Name = "lbMsg";
			this.lbMsg.Size = new System.Drawing.Size(0, 12);
			this.lbMsg.TabIndex = 0;
			this.tboxValue.Location = new System.Drawing.Point(14, 33);
			this.tboxValue.Name = "tboxValue";
			this.tboxValue.Size = new System.Drawing.Size(402, 21);
			this.tboxValue.TabIndex = 1;
			this.tboxValue.KeyPress += new KeyPressEventHandler(this.tboxInfo_KeyPress);
			this.btnOK.Location = new System.Drawing.Point(260, 61);
			this.btnOK.Name = "btnOK";
			this.btnOK.Size = new System.Drawing.Size(75, 23);
			this.btnOK.TabIndex = 2;
			this.btnOK.Text = "确定(&O)";
			this.btnOK.UseVisualStyleBackColor = true;
			this.btnOK.Click += new EventHandler(this.btnOK_Click);
			this.btnClose.Location = new System.Drawing.Point(341, 61);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new System.Drawing.Size(75, 23);
			this.btnClose.TabIndex = 3;
			this.btnClose.Text = "关闭(&C)";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(431, 92);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.btnOK);
			base.Controls.Add(this.tboxValue);
			base.Controls.Add(this.lbMsg);
			base.FormBorderStyle = FormBorderStyle.FixedDialog;
			base.MaximizeBox = false;
			base.MinimizeBox = false;
			base.Name = "FrmGetUserInput";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
